<?php

class Admin_BookController extends Zend_Controller_Action
{

    public function init()
    {
        /* Initialize action controller here */
    }

    public function indexAction()
    {
        
    }

    public function addAction()
    {
        $this->view->form = new Admin_Form_BookForm();
        $request = $this->getRequest();

        if ($this->getRequest()->isPost()) {
            if ($this->view->form->isValid($request->getPost())) {
                //var_dump($this->_request->getPost());
//                $email = new Admin_Model_User($this->view->form->getValues());
//                $mapper = new Admin_Model_UserMapper();
//                $mapper->save($email);
//                return $this->_helper->redirector('index');
            } else {
                $this->view->form->populate($this->_request->getPost());
            }
        }
    	
    }

    public function editAction()
    {
        // action body
    }

    public function deleteAction()
    {
        // action body
    }


}







